import React from 'react'
import './App.scss'
import {
  BrowserRouter as Router,
  Route,
  Switch,
  Redirect
} from 'react-router-dom'

import Layout from './pages/Layout/Layout'
import Login from './pages/Login/Login'

function App () {
  return (
    <Router>
      <div className="app">
        <Switch>
          <Redirect to="/login" from="/" exact />
          <Route path="/layout" component={Layout} />
          <Route path="/login" component={Login} />
        </Switch>
      </div>
    </Router>
  )
}

export default App
